package com.smart4j.framework.aop.spring.five;

import org.springframework.stereotype.Component;

import com.smart4j.framework.aop.spring.four.Greeting;

/**
 * description: SpringAOP 抛出增强，统一集中处理异常。。 Throws Advice .
 * @version v1.0
 * @author w
 * @date 2018年9月23日下午8:41:48
 */
@Component
public class GreetingImpl2 implements Greeting {

	@Override
	public void sayHi(String name) {
		System.out.println(name +"say Hi ... Throws Advice ");
		throw new RuntimeException("Throws Advice ...");
	}

}
